package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderSettingDao {
    /**
     * 1.查询所有预约设置
     *
     * @return
     */
    List<OrderSetting> selectAll();

    //3.查询预约设置信息
    OrderSetting selectByOrderDate(@Param("orderDate") Date orderDate);

    //4.根据id更新已预约数
    void updateReservationsById(@Param("Id") Integer id, @Param("Reservations") Integer Reservations);

    //5.任务10根据id和数量修改
    void updateNumberById(@Param("Id") Integer id, @Param("number") int number);

    //6.插入
    void insert(OrderSetting orderSetting);

    List<OrderSetting> selectMonth(@Param("fisrtDayOfMonth") String fisrtDayOfMonth, @Param("lastDayOfMonth")String lastDayOfMonth);
//    List<OrderSetting> selectByOrderDateRange(@Param("startDate") String startDate, @Param("endDate") String endDate);

}
